<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;

class StoreGoods extends Model
{
    protected $table = 'store_goods';

    protected $fillable = [
    	'goods_name',
    	'goods_img',
    	'goods_spec',
    	'goods_number',
    	'goods_price',
    	'goods_type',
    	'level_id',
    	'hotel_id',
    	'is_hot'
    ];

    public function hotel(){
        return $this->belongsTo('App\Models\Hotel');
    }

    public function storeLevel() {
        return $this->belongsTo('App\Models\StoreLevel', 'level_id', 'id');
    }
}
